import request from '@/utils/request'
//查询宠物帮溜—帮溜需求列表
export const queryDemondList = data => request.get('/system/demand/list', data)
// 添加帮遛需求
export const addDemand = data => request.post('/system/demand', data)

// 查询宠物帮溜—帮溜师列表

export const querySlipList = data => request.get('/system/slip/list', data)

// 添加帮遛师
export const addSlip = data => request.post('/system/slip', data)

// 查询领养
export const queryAdoptList = data => request.get('/system/adopt/list', data)
// 添加领养
export const addAdopt = data => request.post('/system/adopt', data)
// 查询领养出售详细信息
export const queryAdoptDetailById = id => request.get(`/system/adopt/${id}`)


// 查询问诊体检列表
export const listDoctor = data => request.get('/system/doctor/list', data)
// 查询问诊体检详细
export const getDoctor = id => request.get('/system/doctor/' + id)
// 新增问诊体检
export const addDoctor = data => request.post('/system/doctor', data)

// 寄养配对
// 查询寄养配对—配对列表
export const listPair = data => request.get('/system/pair/list', data)
// 查询寄养配对—配对详细
export const getPair = id => request.get('/system/pair/' + id)
// 新增寄养配对—配对
export const addPair = data => request.post('/system/pair', data)

// 查询宠样配对—寄养所列表
export const listBoardingHome = data => request.get('/system/boardingHome/list', data)
// 查询宠样配对—寄养所详细
export const getBoardingHome = id => request.get('/system/boardingHome/' + id)
// 新增宠样配对—寄养所
export const addBoardingHome = data => request.post('/system/boardingHome', data)


// 美容写真
// 查询美容写真—宠物美容师列表
export const listBeautician = data => request.get('/system/beautician/list', data)
// 查询美容写真—宠物美容师详细
export const getBeautician = id => request.get('/system/beautician/' + id)
// 新增美容写真—宠物美容师
export const addBeautician = data => request.post('/system/beautician', data)


// 删除宠物帮溜—帮溜需求
export const delDemandById = id => request.request(`/system/demand/${id}`, 'DELETE')
// 删除宠物帮溜—帮溜师
export const delSlipById = id => request.request(`/system/slip/${id}`, 'DELETE')
 // 删除领养出售—宠物领养
export const delAdoptById = id => request.request(`/system/adopt/${id}`, 'DELETE')
// 删除问诊体检
export const deldoctorById = id => request.request(`/system/doctor/${id}`, 'DELETE')
// 删除寄养配对—配对
export const delpairById = id => request.request(`/system/pair/${id}`, 'DELETE')
// 删除宠样配对—寄养所
export const delboardingHomeById = id => request.request(`/system/boardingHome/${id}`, 'DELETE')
// 删除美容写真—宠物美容师
export const delbeauticianById = id => request.request(`/system/beautician/${id}`, 'DELETE')

